import {createAPI, createFormAPI} from './request.js'

//const BASE_URL = process.env.NODE_ENV == 'development' ? '/mock' : '/api'

const BASE_URL =  '/api'

export const login = data => createAPI(BASE_URL+'/login', 'get', data)

export const profile = data => createAPI(BASE_URL+'/profile', 'get', data)

export const findList
    = data => createAPI(BASE_URL+'/xtgl/xtcsgl/findListByPage', 'get', data)

export const update = data => createAPI(BASE_URL+'/xtgl/xtcsgl/update', 'get', data)

